require "bundler/gem_tasks"
require 'thermite/tasks'

thermite = Thermite::Tasks.new(cargo_project_path: "..", cargo_workspace_member: "libimagruby")

desc 'Run testsuite'
task test: %w(thermite:build thermite:test) do
  dirname   = File.dirname __FILE__
  test_file = File.join dirname, 'test', 'test_imag_has_logging_fns.rb'

  ruby test_file, thermite.config.ruby_extension_path
  ruby '-I', File.dirname(thermite.config.ruby_extension_path), test_file
end

